//
//  CLSplashViewController.swift
//  CLEasyBBQ
//
//  Created by simon zhao on 2017/4/30.
//  Copyright © 2017年 simon zhao. All rights reserved.
//

import UIKit

class CLSplashViewController: UIViewController,btnClickDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()
        let splashView = CLSplashView.init(frame: self.view.bounds)
        self.view.insertSubview(splashView, at: 0)
        splashView.enterDelegate = self
        
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func pushNewMainVc(sender: UIButton!) {
        
        self.view.window?.rootViewController = CLTabBarController()
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
